package com.iotechn.unimall.admin.api.enterprise;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.EnterpriseDO;
import com.iotechn.unimall.data.model.Page;

/**
 * 企业介绍
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-07-17 09:46:41
 */
@HttpOpenApi(group = "admin.enterprise", description = "")
public interface AdminEnterpriseService {

    @HttpMethod(description = "创建", permission = "operation:enterprise:create", permissionParentName = "企业信息", permissionName = "公司介绍")
    public EnterpriseDO create(
            @NotNull @HttpParam(name = "enterpriseDO", type = HttpParamType.COMMON, description = "") EnterpriseDO enterpriseDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "修改", permission = "operation:enterprise:update", permissionParentName = "企业信息", permissionName = "公司介绍")
    public String update(
            @NotNull @HttpParam(name = "enterpriseDO", type = HttpParamType.COMMON, description = "") EnterpriseDO enterpriseDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "详情", permission = "operation:enterprise:detail", permissionParentName = "企业信息", permissionName = "公司介绍")
    public EnterpriseDO detail(
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

}

